package com.example.demo;

import android.content.Context;
import android.support.v7.widget.AppCompatButton;
import android.util.AttributeSet;

public class MyButton extends AppCompatButton {
    private int myTest;
    public MyButton(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public int getMyTest() {
        return myTest;
    }

    public void setMyTest(int myTest) {
        this.myTest = myTest;
        setText(String.valueOf(myTest));
    }

}
